package com.jjb.common.view.model;

import com.jjb.common.view.draw.TextAreaDrawCanvas;

import java.awt.*;

public class TableRow {

    /**
     * 表格头名称
     */
    private String headName;

    /**
     * 属性
     */
    private String property;

    /**
     * 表格的宽度
     */
    private int width;

    /**
     * 行间距
     */
    private int rowSpacing = 10;

    /**
     * 文字与表格线条间距
     */
    private int padding = 5;

    private Color color = Color.BLACK;

    /**
     * 背景填充
     */
    private Color backGroundColor;

    private Font font = new Font("微软雅黑", Font.PLAIN, 25);

    /**
     * 高度
     */
    private int height = 0;

    /**
     * 水平对其方式
     *      1：左对其
     *      2：居中对其
     */
    private int textAlign = 2;

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public Font getFont() {
        return font;
    }

    public void setFont(Font font) {
        this.font = font;
    }

    public int getPadding() {
        return padding;
    }

    public void setPadding(int padding) {
        this.padding = padding;
    }

    public String getHeadName() {
        return headName;
    }

    public void setHeadName(String headName) {
        this.headName = headName;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getRowSpacing() {
        return rowSpacing;
    }

    public void setRowSpacing(int rowSpacing) {
        this.rowSpacing = rowSpacing;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getTextAlign() {
        return textAlign;
    }

    public void setTextAlign(int textAlign) {
        this.textAlign = textAlign;
    }

    public void setBackGroundColor(Color backGroundColor) {
        this.backGroundColor = backGroundColor;
    }

    public Color getBackGroundColor() {
        return backGroundColor;
    }
}